package com.my.mapper;

import com.my.pojo.Department;
import com.my.vo.DepartmentVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DepartmentMapper {
    List<DepartmentVo> getAllDepartment();
    boolean deleteDepartmentById(Integer departId);

    boolean addDepartmentBy(Department department);

    DepartmentVo getDepartmentById(Integer departId);

    List<DepartmentVo> getDepartmentBy(Department department);
}
